/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package trivia.gui;

import javax.microedition.lcdui.*;
import trivia.Problem;

/**
 *
 * @author mourawi
 */
public class HintForm extends Form {

    public HintForm() {
        super("Wrong amswer");
        append(new StringItem("Hint: ", null));
        addCommand(new Command("OK", Command.OK, 0));
    }

    public void displayHint(Problem problem) {
        ((StringItem)get(0)).setText(problem.getHint());
    }
}
